<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
    <style>
        body {
            margin: auto;
            padding: 0px;
        }

        .div-login {
            height: 90vh;
            width: 400px;
            display: flex;
            flex-direction: column;
            align-content: center;
            border: 2px black solid;
            border-radius: 10%;
            margin: 5vh auto;
        }

        .div-login div {
            height: 45px;
            width: 100%;
            display: flex;
            flex-direction: row;
            align-content: center;
            align-items: center;
            justify-content: center;

        }
    </style>
</head>
<body>
<div class="div-login">
    <form action="/userinfo/login" method="post" enctype="multipart/form-data" >
        {% csrf_token %}
        <div class="login_name">
            <label>登录名:</label>
            <input type="text" name="username" value="{{ username }}">
        </div>
        <div class="login_pwd">
            <label>密码:</label>
            <input type="password" name="password" value="{{ password }}">
        </div>
        <div class="remember_me">
            <input type="checkbox" id="remember_me" value="true" name="remember_me"><label for="remember_me">记住我</label>
        </div>
        <div class="upload_file">
            <input type="file" name="myfile">
        </div>
        <div class="btn_login">
            <input type="submit" value="登录">
        </div>
    </form>
</div>
</body>
</html>